package com.lyh.system.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.lyh.common.utils.CommonUtils;
import com.lyh.common.utils.uuid.Seq;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lyh.common.annotation.Excel;
import com.lyh.common.core.domain.BaseEntity;

/**
 * 商品对象 lyh_goods
 *
 * @author ruoyi
 * @date 2023-05-11
 */
@Data
@TableName("lyh_goods")
public class Goods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 图片 */
    @Excel(name = "图片")
    private String picture;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    @Excel(name = "资产通证")
    private BigDecimal assetEvidenceNum;

    @Excel(name = "消费卷")
    private BigDecimal consumerCouponNum;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String describeInfo;

    /** 商品规格 */
    @Excel(name = "商品规格")
    private String specifications;

    /** 商品类别id */
    @Excel(name = "商品类别id")
    private Long goodsTypeId;

    /** 商品库存 */
    @Excel(name = "商品库存")
    private Long goodsInventory;

    //商品分类
    private Integer goodsClass;

    //商品小类
    private Integer goodsClassType;

    //赠送积分
    private Long giveScore;

    //赠送权益额度
    private BigDecimal giveAuhtNum;

    //状态 0 未上架 1上架
    @Excel(name = "状态（0未上架1上架）")
    private Integer status;

    //月销
    private Long monthlySales;

    @Excel(name = "上架时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date shelfTime;


    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

}
